package annotation;
@MyAnnotation(name = "wangcai")
public class Dog {
    private String name;
    public int age;

    public Dog() {
    }

    public Dog(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    private void eat(){
        System.out.println("I am eating!");
    }
    public void eat(String foodName){
        System.out.println("I am eating!"+foodName);
    }
}
